/**
 * 
 */
package com.demo2do.boyle.backend.service.system;

import java.util.List;

import com.demo2do.boyle.common.entity.geo.Geo;
import com.demo2do.core.service.GenericService;
import com.demo2do.core.web.resolver.Page;

/**
 * @author Leo
 *
 */
public interface GeoService extends GenericService<Geo>{
    
    /**
     * List all the geos
     * 
     * @param page
     * @return
     */
    public List<Geo> listGeos();
    
    /**
     * Search geos by name and hot
     * 
     * @param name
     * @param hot
     * @return
     */
    public List<Geo> search(String name, Boolean hot, Page page);
    
    /**
     * Activate geos by codes
     * 
     * @param codes
     */
    public void activate(String[] codes);
}
